package com.xilihui.xlh.business.entities;

import com.xilihui.xlh.core.app.BaseEntity;

import java.util.List;

/**
 * Created by Administrator on 2018/8/7.
 */

public class GoodDetailsEntity extends BaseEntity{


    /**
     * goods : {"goods_id":"2","goods_name":"iPhone","store_count":"100","shop_price":"4500.00","original_img":"/public/upload/goods/thumb/76/goods_thumb_76_400_400.jpeg"}
     * filter_spec : [{"name":"网络","spec":[{"item_id":"1","item":"4G","src":"","select":"1"},{"item_id":"2","item":"3G","src":"","select":"0"}]},{"name":"内存","spec":[{"item_id":"5","item":"16G","src":"","select":"1"},{"item_id":"6","item":"32G","src":"","select":"0"}]}]
     */

    private GoodsBean goods;
    private List<FilterSpecBean> filter_spec;
    private String item_id;

    public GoodsBean getGoods() {
        return goods;
    }

    public void setGoods(GoodsBean goods) {
        this.goods = goods;
    }

    public List<FilterSpecBean> getFilter_spec() {
        return filter_spec;
    }

    public void setFilter_spec(List<FilterSpecBean> filter_spec) {
        this.filter_spec = filter_spec;
    }

    public static class GoodsBean {
        /**
         * goods_id : 2
         * goods_name : iPhone
         * store_count : 100
         * shop_price : 4500.00
         * original_img : /public/upload/goods/thumb/76/goods_thumb_76_400_400.jpeg
         */

        private String goods_id;
        private String goods_name;
        private String store_count;
        private String shop_price;
        private String original_img;

        public String getGoods_id() {
            return goods_id;
        }

        public void setGoods_id(String goods_id) {
            this.goods_id = goods_id;
        }

        public String getGoods_name() {
            return goods_name;
        }

        public void setGoods_name(String goods_name) {
            this.goods_name = goods_name;
        }

        public String getStore_count() {
            return store_count;
        }

        public void setStore_count(String store_count) {
            this.store_count = store_count;
        }

        public String getShop_price() {
            return shop_price;
        }

        public void setShop_price(String shop_price) {
            this.shop_price = shop_price;
        }

        public String getOriginal_img() {
            return original_img;
        }

        public void setOriginal_img(String original_img) {
            this.original_img = original_img;
        }
    }

    public static class FilterSpecBean {
        /**
         * name : 网络
         * spec : [{"item_id":"1","item":"4G","src":"","select":"1"},{"item_id":"2","item":"3G","src":"","select":"0"}]
         */

        private String name;
        private List<SpecBean> spec;

        public String getName() {
            return name;
        }

        public void setName(String name) {
            this.name = name;
        }

        public List<SpecBean> getSpec() {
            return spec;
        }

        public void setSpec(List<SpecBean> spec) {
            this.spec = spec;
        }

        public static class SpecBean {
            /**
             * item_id : 1
             * item : 4G
             * src : 
             * select : 1
             */

            private String item_id;
            private String item;
            private String src;
            private String select;

            public String getItem_id() {
                return item_id;
            }

            public void setItem_id(String item_id) {
                this.item_id = item_id;
            }

            public String getItem() {
                return item;
            }

            public void setItem(String item) {
                this.item = item;
            }

            public String getSrc() {
                return src;
            }

            public void setSrc(String src) {
                this.src = src;
            }

            public String getSelect() {
                return select;
            }

            public void setSelect(String select) {
                this.select = select;
            }
        }
    }

    public String getItem_id() {
        return item_id;
    }

    public void setItem_id(String item_id) {
        this.item_id = item_id;
    }
}
